<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>V-text</title>
</head>

<body>

    <div id="app">
        <h2 v-text="message"></h2>
        <h2 v-text="info"></h2>
        <h2>{{message}}</h2>
        <!-- 字符串拼接 -->
        <h2 v-text="message+'!'"></h2>
    </div>


    <!-- 开发环境版本 -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <!-- Vue实例 -->
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                message: "v-text测试",
                info: "这也是"
            }
        })

    </script>

</body>

</html>